package com.gitee.wsl.mathematics.complex.quaternion.ext

/*

*/
/**
 * Construct [Quaternion] using from, to and up vectors
 *//*

fun fromLookAt(from: Vector3, to: Vector3, up: Vector3 = Vector3.UNIT_Y): Quaternion {
    val direction = to - from
    val z = direction.normalized
    val y = up.normalized
    val x = (y cross z).normalized
    val y2 = (z cross x).normalized
    return fromAxes(x, y2, z).normalized
}

*/
/**
 * Construct [Quaternion] from axes
 *//*

fun fromAxes(x: Vector3, y: Vector3, z: Vector3): Quaternion {
    val m = Matrix33.fromColumnVectors(x, y, z)
    return fromMatrix(m)
}
*/
